import {Pager} from '../../shared/model/pager.model';

export const UnitPageConfig = {
  title: '单位管理',
  table: 'sysUnit',
  controller: 'sysUnit',
  search: {
    // columnCount: '3,3,6',
    columnCount: 4,
    fieldLabel: [4, 8],
    data: {},
    cols: [
      { field: 'unitName', label: '单位名', input: 'text' },
      { field: 'unitAddress', label: '单位地址', input: 'text' },
    ]
  },
  list: {
    title: '单位列表',
    data: [],
    cols: [
      { field: 'parentName', header: '上级单位'},
      { field: 'unitName', header: '单位名称'},
      { field: 'unitLead', header: '负责人'},
      { field: 'unitPhone', header: '联系电话'},
      { field: 'unitAddress', header: '单位地址'},
    ],
    pager: new Pager({pageSize: 10, pageLinks: 3, rowsPerPageOptions: [3, 5, 7]}),
    // loading: false
  },
  dialog: {
    add: {},
    edit: {}
  }
}
